package com.yc.blog.spring.aspectj.demo1;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Pointcut;

public class MyAspect {

	@Pointcut("execution(* com.mzsea.spring.service.*.*(..))")
	public void pointCut1() {
		
	}
	
	@Around("pointCut1()")
	public Object myAround(ProceedingJoinPoint joinPoint) throws Throwable {
		System.out.println("---before--");
		Object obj = joinPoint.proceed();
		System.out.println("---before--");
		
		return obj;
	}
}
